sdmdlexporter module

class sd.api.mdl.sdmdlexporter.SDMDLExporter(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Utility to export MDL modules and presets

getClassName() → str

Returns the most specific name of the class this APIObject is

release() → None

Releases an APIObject

static sExportPackage(sdPackage: sd.api.sdpackage.SDPackage, mdlModuleFilePath: str) → None

Export the specified SDPackage to the specified MDL module file

Parameters
  • sdPackage – The SDPackage to export

  • mdlModuleFilePath – The file path of the MDL Module that will be generated

static sExportPreset(sdMDLGraph: sd.api.mdl.sdmdlgraph.SDMDLGraph, mdlPresetModuleFilePath: str) → None

Export the specified SDMDLGraph as a preset to the specified MDL module file

Parameters
  • sdMDLGraph – The SDMDLGraph to export

  • mdlPresetModuleFilePath – The file path of the MDL Module that will be generated